﻿using System;
using Microsoft.EntityFrameworkCore;

namespace MiniX.API.Data
{

    /// <summary>
    /// 版权所有: Copyright © 2024 Cloudin. 保留所有权利。
    /// 内容摘要: MiniXApiContext 数据库上下文类,EF Core 
    /// 创建日期：2023年6月11日
    /// 更新日期：2024年4月2日
    /// 版    本：V1.0.8 
    /// 作    者：Cloudin
    /// </summary>
    public class MiniXApiContext : DbContext
    {
        /// <summary>
        /// 数据库上下文
        /// </summary>
        public MiniXApiContext(DbContextOptions<MiniXApiContext> options): base(options)
        {
           // 有新增数据表时，必须覆盖此类
        }
        
        
        /// <summary>
        /// 广告
        /// </summary>
        public DbSet<MiniX.Models.Ads> mini_ads { get; set; }
        
        /// <summary>
        /// 链接类型
        /// </summary>
        public DbSet<MiniX.Models.AdsLinks> mini_ads_links { get; set; }
        
        /// <summary>
        /// 广告位置
        /// </summary>
        public DbSet<MiniX.Models.AdsPositions> mini_ads_positions { get; set; }
        
        /// <summary>
        /// 区域
        /// </summary>
        public DbSet<MiniX.Models.Areas> mini_areas { get; set; }
        
        /// <summary>
        /// 文章状态
        /// </summary>
        public DbSet<MiniX.Models.ArticleStatus> mini_article_status { get; set; }
        
        /// <summary>
        /// 文章分类
        /// </summary>
        public DbSet<MiniX.Models.ArticleTypes> mini_article_types { get; set; }
        
        /// <summary>
        /// 文章
        /// </summary>
        public DbSet<MiniX.Models.Articles> mini_articles { get; set; }
        
        /// <summary>
        /// 附件类型
        /// </summary>
        public DbSet<MiniX.Models.AttachmentTypes> mini_attachment_types { get; set; }
        
        /// <summary>
        /// 附件
        /// </summary>
        public DbSet<MiniX.Models.Attachments> mini_attachments { get; set; }
        
        /// <summary>
        /// 验证码
        /// </summary>
        public DbSet<MiniX.Models.Codes> mini_codes { get; set; }
        
        /// <summary>
        /// 国家
        /// </summary>
        public DbSet<MiniX.Models.Country> mini_country { get; set; }
        
        /// <summary>
        /// 活动报名
        /// </summary>
        public DbSet<MiniX.Models.EventEnroll> mini_event_enroll { get; set; }
        
        /// <summary>
        /// 签到
        /// </summary>
        public DbSet<MiniX.Models.EventSigns> mini_event_signs { get; set; }
        
        /// <summary>
        /// 活动类型
        /// </summary>
        public DbSet<MiniX.Models.EventTypes> mini_event_types { get; set; }
        
        /// <summary>
        /// 活动
        /// </summary>
        public DbSet<MiniX.Models.Events> mini_events { get; set; }
        
        /// <summary>
        /// 活动图片
        /// </summary>
        public DbSet<MiniX.Models.EventsPhotos> mini_events_photos { get; set; }
        
        /// <summary>
        /// 意见反馈
        /// </summary>
        public DbSet<MiniX.Models.Feedback> mini_feedback { get; set; }
        
        /// <summary>
        /// 意见类别表
        /// </summary>
        public DbSet<MiniX.Models.FeedbackTypes> mini_feedback_types { get; set; }
        
        /// <summary>
        /// 性别
        /// </summary>
        public DbSet<MiniX.Models.Genders> mini_genders { get; set; }
        
        /// <summary>
        /// 多语言
        /// </summary>
        public DbSet<MiniX.Models.Languages> mini_languages { get; set; }
        
        /// <summary>
        /// 日志类型
        /// </summary>
        public DbSet<MiniX.Models.LogTypes> mini_log_types { get; set; }
        
        /// <summary>
        /// 日志
        /// </summary>
        public DbSet<MiniX.Models.Logs> mini_logs { get; set; }
        
        /// <summary>
        /// 收货地址表
        /// </summary>
        public DbSet<MiniX.Models.MemberAddresses> mini_member_addresses { get; set; }
        
        /// <summary>
        /// 评论
        /// </summary>
        public DbSet<MiniX.Models.MemberComments> mini_member_comments { get; set; }
        
        /// <summary>
        /// 收藏
        /// </summary>
        public DbSet<MiniX.Models.MemberFavorites> mini_member_favorites { get; set; }
        
        /// <summary>
        /// 浏览商品记录
        /// </summary>
        public DbSet<MiniX.Models.MemberHistories> mini_member_histories { get; set; }
        
        /// <summary>
        /// 会员等级
        /// </summary>
        public DbSet<MiniX.Models.MemberLevels> mini_member_levels { get; set; }
        
        /// <summary>
        /// 点赞
        /// </summary>
        public DbSet<MiniX.Models.MemberLikes> mini_member_likes { get; set; }
        
        /// <summary>
        /// 签到
        /// </summary>
        public DbSet<MiniX.Models.MemberSigns> mini_member_signs { get; set; }
        
        /// <summary>
        /// 会员类型
        /// </summary>
        public DbSet<MiniX.Models.MemberTypes> mini_member_types { get; set; }
        
        /// <summary>
        /// 会员
        /// </summary>
        public DbSet<MiniX.Models.Members> mini_members { get; set; }
        
        /// <summary>
        /// 菜单
        /// </summary>
        public DbSet<MiniX.Models.Menus> mini_menus { get; set; }
        
        /// <summary>
        /// 阅读记录表
        /// </summary>
        public DbSet<MiniX.Models.MessageRead> mini_message_read { get; set; }
        
        /// <summary>
        /// 消息类型
        /// </summary>
        public DbSet<MiniX.Models.MessageTypes> mini_message_types { get; set; }
        
        /// <summary>
        /// 消息
        /// </summary>
        public DbSet<MiniX.Models.Messages> mini_messages { get; set; }
        
        /// <summary>
        /// 对象
        /// </summary>
        public DbSet<MiniX.Models.Objects> mini_objects { get; set; }
        
        /// <summary>
        /// 支付方式表
        /// </summary>
        public DbSet<MiniX.Models.Paymethod> mini_paymethod { get; set; }
        
        /// <summary>
        /// 平台
        /// </summary>
        public DbSet<MiniX.Models.Platforms> mini_platforms { get; set; }
        
        /// <summary>
        /// 会员积分
        /// </summary>
        public DbSet<MiniX.Models.PointMembers> mini_point_members { get; set; }
        
        /// <summary>
        /// 积分记录
        /// </summary>
        public DbSet<MiniX.Models.PointRecords> mini_point_records { get; set; }
        
        /// <summary>
        /// 积分
        /// </summary>
        public DbSet<MiniX.Models.Points> mini_points { get; set; }
        
        /// <summary>
        /// 审核状态
        /// </summary>
        public DbSet<MiniX.Models.ReviewStatus> mini_review_status { get; set; }
        
        /// <summary>
        /// 审核类型
        /// </summary>
        public DbSet<MiniX.Models.ReviewTypes> mini_review_types { get; set; }
        
        /// <summary>
        /// 审核意见
        /// </summary>
        public DbSet<MiniX.Models.Reviews> mini_reviews { get; set; }
        
        /// <summary>
        /// 搜索关键字记录
        /// </summary>
        public DbSet<MiniX.Models.SearchRecords> mini_search_records { get; set; }
        
        /// <summary>
        /// 搜索类型
        /// </summary>
        public DbSet<MiniX.Models.SearchTypes> mini_search_types { get; set; }
        
        /// <summary>
        /// 配置信息
        /// </summary>
        public DbSet<MiniX.Models.SettingInfo> mini_setting_info { get; set; }
        
        /// <summary>
        /// 配置选项类型
        /// </summary>
        public DbSet<MiniX.Models.SettingTypes> mini_setting_types { get; set; }
        
        /// <summary>
        /// 短信
        /// </summary>
        public DbSet<MiniX.Models.Sms> mini_sms { get; set; }
        
        /// <summary>
        /// 角色
        /// </summary>
        public DbSet<MiniX.Models.UserRoles> mini_user_roles { get; set; }
        
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<MiniX.Models.Users> mini_users { get; set; }
        
        /// <summary>
        /// 推广媒介
        /// </summary>
        public DbSet<MiniX.Models.UtmMediums> mini_utm_mediums { get; set; }
        
        /// <summary>
        /// 推广来源
        /// </summary>
        public DbSet<MiniX.Models.UtmSources> mini_utm_sources { get; set; }
        
        /// <summary>
        /// 版本
        /// </summary>
        public DbSet<MiniX.Models.Versions> mini_versions { get; set; }
        
        /// <summary>
        /// 访问频道
        /// </summary>
        public DbSet<MiniX.Models.VisitChannels> mini_visit_channels { get; set; }
        
        /// <summary>
        /// 访问量
        /// </summary>
        public DbSet<MiniX.Models.Visits> mini_visits { get; set; }

    }
}
